import { toRaw, reactive } from "vue";

let tags: any = []
const defaultTags = (list: any) => {
	list.forEach((item: any) => {
		if (item.meta && item.meta.affix) {
			tags.push(toRaw(item))
		}
		if (item.children) {
			defaultTags(item.children)
		}
	})
	return reactive(tags)
}
